#import "RNSearchWindow.h"

@interface RNSearchWindow (RNSearchWindowPrivateMethods)
-(void)initialize_;
@end


@implementation RNSearchWindow

-(id)init {
    if (!(self = [super initWithContentRect:NSZeroRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]))
        return nil;
    [self initialize_];
    return self;
}

-(id)initWithCoder:(NSCoder *)coder {
    if (!(self = [super initWithCoder:coder]))
        return nil;
    [self initialize_];
    return self;
}

-(void)initialize_ {
    [self setBackgroundColor:[NSColor clearColor]];
    [self setExcludedFromWindowsMenu:YES];
    [self setOpaque:NO];    
    [self setAlphaValue:1.0f];
    [self setMovableByWindowBackground:NO];
    [self setHasShadow:NO];
    [self useOptimizedDrawing:YES];
}

@end
